<html>
<head>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
  <style>
    .new {
      float: right;
      position: relative;
      top: 25px;
    }
  </style>
</head>
<body>
  <nav class="navbar navbar-default">
    <div class="container-fluid">
      <div class="navbar-header">
        <a class="navbar-brand" href="/admin/releases">Copperhead OTA</a>
      </div>

      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        {{ if .noAuth }}
        <ul class="nav navbar-nav navbar-right">
          <li><a href="/login">Login</a></li>
        </ul>
        {{ else }}
        <ul class="nav navbar-nav">
          <li><a href="/admin/releases">Releases</a></li>
          <li><a href="/admin/files">Files</a></li>
          <li><a href="/admin/users">Users</a></li>
        </ul>
        <ul class="nav navbar-nav navbar-right">
          <li><a href="/logout">Logout</a></li>
        </ul>
        {{ end }}
      </div>
    </div>
  </nav>
  <div class='container'>
    {{range .flashes }}
      <div class="alert alert-info" role="alert">{{ . }}</div>
    {{ end }}
    {{ yield }}
  </div>
</body>
</html>
